package ch.zbw.mauchle.i18n;

import java.util.Locale;
import java.util.ResourceBundle;

public class I18N {

	static public void main(String[] args) {

		String language;
		String country;

		if (args.length != 2) {
			language = new String("de");
			country = new String("DE");
		} else {
			language = new String(args[0]);
			country = new String(args[1]);
		}

		Locale currentLocale;
		ResourceBundle messages;

		currentLocale = new Locale(language, country);

		messages = ResourceBundle.getBundle("MessagesBundle", currentLocale);

		System.out.println(messages.getString("greetings"));
		System.out.println(messages.getString("inquiry"));
		System.out.println(messages.getString("farewell"));
	}
}